package com.study.ming.shejimoshi.observe;

public class Demo {

	public static void main(String[] args) throws InterruptedException {
		Changer changer = new Changer();
		ObserveGreen observeGreen = new ObserveGreen();
		ObserveRed observeRed= new ObserveRed();
		changer.bindObserve(observeRed);
		changer.bindObserve(observeGreen);
		changer.changState(2);
		Thread.sleep(7000);
		changer.changState(22);
	}

}
